<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input id="id" name="id" th:value="${coursesClass.id}" type="hidden">
                        <input id="courseIds" name="courseIds" th:value="${coursesClass.courseIds}" type="hidden">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">学习时间：</label>
                            <div class="col-sm-8">
                               <span class="jl_sclYear">
                                 <input id="startTime" name="startTime" th:value="${coursesClass.startTime}"  type="text" class="jl_ipt xmStartTime" onclick="WdatePicker({dateFmt:'yyyy年MM月DD日'})" placeholder="开始时间"/> &nbsp;&nbsp;- &nbsp;&nbsp;
                                 <input id="endTime" name="endTime" th:value="${coursesClass.endTime}" type="text" class="jl_ipt xmEndTime" onclick="WdatePicker({dateFmt:'yyyy年MM月DD日'})" placeholder="结束时间"/>
                               </span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">章节学习要求：</label>
                            <div class="col-sm-8">
                                <input id="requirement2" name="requirement2" th:value="${coursesClass.requirement}" type="hidden">
                                <select id="requirement" name="requirement" onchange="showTime()"  th:value="${coursesClass.requirement}" class="form-control" type="text">
                                    <option value="">请选择</option>
                                    <option value="0">通过章节测试</option>
                                    <option value="1">在规定时间内完成学习</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group requirementTime" >
                            <label class="col-sm-3 control-label">章节学习要求-时间：</label>
                            <div class="col-sm-8">
                               <span class="jl_sclYear">
                                 <input id="time_requirement" name="time_requirement"  th:value="${coursesClass.timeRequirement}"  type="number" min="0"  οnblur="changValue()" placeholder="请输入正整数"/>
                               </span>
                            </div>
                        </div>
                        <div  class="form-group requirementTime" >
                            <label class="col-sm-3 control-label">章节学习要求-时间单位：</label>
                            <div class="col-sm-8">
                                <input id="time_unit2" name="time_unit2" th:value="${coursesClass.timeUnit}" type="hidden">
                                <select id="time_unit" name="time_unit"  th:value="${coursesClass.timeUnit}" class="form-control" type="text">
                                    <option value="">请选择</option>
                                    <option value="0">天</option>
                                    <option value="1">小时</option>
                                    <option value="2">分钟</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">学习范围：</label>
                            <input id="range2" name="range2" th:value="${coursesClass.range}" type="hidden">
                            <div class="col-sm-8">
                                <select id="range" name="range" onchange="showCourses()"  th:value="${coursesClass.range}" class="form-control" type="text">
                                    <option value="">请选择</option>
                                    <option value="0">学习单个课程(本课程)</option>
                                    <option value="1">多个课程（本班级的其他课程）</option>
                                </select>
                            </div>
                        </div>
                        <div id="coursesList" class="form-group">
                            <label class="col-sm-3 control-label">学习范围-课程：</label>
                            <div class="col-sm-8">
                                <div id="menuTree"></div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script src="//s.xlongwei.com/res/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/js/webJs/jzweb/coursesClass/settingCoursePlan.js">
</script>
</body>
</html>
